// 报事报修管理
export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: "center",
  viewBtn: false,
  addBtn: false,
  columnBtn: false,
  dialogEscape: false,
  dialogClickModal: false,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  menuWidth: 140,
  column: [
    {
      type: "input",
      label: "主键",
      hide: true,
      prop: "id"
    },
    {
      type: "input",
      label: "报事报修编号",
      //"searchValue":"12",//默认值
      searchLabelWidth: 100,
      search: false,
      width: "150px",
      prop: "serviceBxNumber"
    },
    {
      type: "input",
      label: "关联房产编号",
      searchLabel: "房产编号",
      searchLabelWidth: 100,
      search: false,
      width: "150px",
      prop: "projectNumber"
    },
    {
      type: "select",
      label: "区域",
      prop: "serviceRange",
      dicUrl: "/admin/dict/type/service_range",
      formatter: function(row, value) {
        if (value == 1) {
          return "屋内区域";
        } else if (value == 2) {
          return "公共区域";
        }
      }
    },
    {
      type: "select",
      label: "故障设备",
      prop: "relateDeviceType",
      dicUrl: "/admin/dict/type/relate_device_type"
    },
    {
      type: "select",
      label: "事故类型",
      search: true,
      prop: "serviceType",
      // dicUrl: '/admin/dict/type/service_type'
      dicData: [
        {
          label: "报事",
          value: "1"
        },
        {
          label: "报修",
          value: "2"
        }
      ]
    },
    {
      type: "input",
      label: "联系方式",
      search: true,
      prop: "contactPhoneNumber"
    },
    {
      type: "select",
      label: "处理状态",
      searchLabelWidth: 100,
      search: false,
      prop: "serviceStatus",
      dicUrl: "/admin/dict/type/service_status"
    },
    {
      type: "input",
      label: "关联公司",
      hide: true,
      prop: "companyId"
    },
    {
      type: "input",
      label: "内容描述",
      hide: true,
      prop: "serviceDescription"
    },
    {
      type: "input",
      label: "创建者",
      hide: true,
      prop: "createBy"
    },
    {
      type: "datetime",
      label: "报修时间",
      hide: false,
      prop: "createDate",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd"
    },
    {
      type: "input",
      label: "更新者",
      hide: true,
      prop: "updateBy"
    },
    {
      type: "input",
      width: "150px",
      label: "更新时间",
      prop: "updateDate"
    },
    {
      type: "input",
      label: "备注信息",
      hide: true,
      prop: "remarks"
    },
    {
      type: "input",
      label: "删除",
      hide: true,
      prop: "isDeleted"
    },
    {
      type: "input",
      hide: true,
      label: "逻辑删除标记（0：显示；1：隐藏",
      prop: "delFlag"
    }
  ]
};
